package javase.homework.design_company_and_position;

class Position {
    private Integer positionId;
    private String positionName;
    //绑定一个公司对象
    private Company companyName;
    private Integer minWages;
    private Integer maxWages;
    private String positionAddress;
    private String education;

    public Position(Integer positionId, String positionName, Company companyName, Integer minWages, Integer maxWages, String positionAddress, String education) {
        this.positionId = positionId;
        this.positionName = positionName;
        this.companyName = companyName;
        this.minWages = minWages;
        this.maxWages = maxWages;
        this.positionAddress = positionAddress;
        this.education = education;
    }

    public Position() {
    }

    public Integer getPositionId() {
        return positionId;
    }

    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public Company getCompanyName() {
        return companyName;
    }

    public void setCompanyName(Company companyName) {
        this.companyName = companyName;
    }

    public Integer getMinWages() {
        return minWages;
    }

    public void setMinWages(Integer minWages) {
        this.minWages = minWages;
    }

    public Integer getMaxWages() {
        return maxWages;
    }

    public void setMaxWages(Integer maxWages) {
        this.maxWages = maxWages;
    }

    public String getPositionAddress() {
        return positionAddress;
    }

    public void setPositionAddress(String positionAddress) {
        this.positionAddress = positionAddress;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    @Override
    public String toString() {
        return "Position{" +
                "positionId=" + positionId +
                ", positionName='" + positionName + '\'' +
                ", companyName=" + companyName +
                ", minWages=" + minWages +
                ", maxWages=" + maxWages +
                ", positionAddress='" + positionAddress + '\'' +
                ", education='" + education + '\'' +
                '}';
    }
}
